﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BonsaiScrum.Mvc.Models.LogOnModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>BonsaiScrum!</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />    
</head>
<body>
    <div id="log-on-outer">
        <div id="log-on-inner" class="ui-corner-all">
            <h2>Welcome to BonsaiScrum!</h2>    
            <% using (Html.BeginForm()) { %>
                <%= Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
                <div>
                    <div class="editor-label">
                        <%= Html.LabelFor(m => m.UserName) %>
                    </div>
                    <div class="editor-field">
                        <%= Html.TextBoxFor(m => m.UserName) %>
                        <%= Html.ValidationMessageFor(m => m.UserName) %>
                    </div>
                    
                    <div class="editor-label">
                        <%= Html.LabelFor(m => m.Password) %>
                    </div>
                    <div class="editor-field">
                        <%= Html.PasswordFor(m => m.Password) %>
                        <%= Html.ValidationMessageFor(m => m.Password) %>
                    </div>
                    
                    <div class="editor-label">
                        <%= Html.CheckBoxFor(m => m.RememberMe) %>
                        <%= Html.LabelFor(m => m.RememberMe) %>
                    </div>
                    
                    <p>
                        <input type="submit" value="Log On" />
                    </p>
                </div>
            <% } %>
        </div>
    </div>
</body>
</html>